﻿CREATE TABLE [PR].[PaidDocuments] (
    [Id]           INT             IDENTITY (1, 1) NOT NULL,
    [DocId]        INT             NULL,
    [DocDate]      SMALLDATETIME   NULL,
    [Summa]        DECIMAL (19, 2) NULL,
    [PaymentDraft] INT             NULL,
    [MD]           DATETIME        NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    UNIQUE NONCLUSTERED ([DocId] ASC)
);

